# -*- coding:utf-8 -*-
from django.http import JsonResponse
from rest_framework.authentication import SessionAuthentication
from rest_framework.views import APIView

from Apps.common.response import SuccessResponse
from Apps.util.request_util import get_day_note, get_weather


class GetNoteInfoView(APIView):
    # authentication_classes = []

    def get(self, request):
        return SuccessResponse(get_day_note())


class GetWeatherInfoView(APIView):

    def get(self, request):
        return SuccessResponse(get_weather(request))
